import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';

@Component({
	selector: 'm-card',
	templateUrl: './card.component.html',
	styleUrls: ['./card.component.scss'],
})
export class CardComponent implements OnInit, OnChanges {
	@Input() hideHead: boolean;
	@Input() autoHeight: boolean;
	@Input() fullHeight: boolean;
	@Input() fullscreen: boolean;
	constructor() {}

	ngOnInit() {}
	ngOnChanges(changed: SimpleChanges) {
		if (changed.fullscreen && changed.fullscreen.currentValue) {
			document.body.style.overflowY = 'hidden';
		} else {
			document.body.style.overflowY = 'auto';
		}
	}
}
